﻿using FluentMigrator;

namespace ProgressTracker.Data.Migrations
{
    [Migration(201402170000)]
    public class _2043_Create_Initial_Task_Table : Migration
    {
        public override void Up()
        {
            Create.Table("Tasks")
                .WithColumn("Id").AsInt32().NotNullable().PrimaryKey().Identity()
                .WithColumn("Name").AsString()
                .WithColumn("Description").AsString();
        }

        public override void Down()
        {
            Delete.Table("Tasks");
        }
    }
}
